<template>
  <!-- 精选课程 -->
  <div class="c_course_box">
    <div class="title">
      <!-- 专块标签 -->
      <SpecialTitle>
        <template v-slot:left>精选课程</template>
        <template v-slot:right>
          <router-link to="systemClass" class="link">
            更多课程
            <svg class="icon_more" aria-hidden="true">
              <use xlink:href="#icon-htmal5icon45"></use>
            </svg>
          </router-link>
        </template>
      </SpecialTitle>
    </div>
    <!-- 专块列表 -->
    <div class="list">
      <div class="list_back_tag">中级经济师</div>
      <div class="list_back_title">精选热门推荐课</div>
      <div class="c_course_item" v-for="item in [1, 2]" :key="item">
        <CourseItem />
      </div>
    </div>
  </div>
</template>

<script>
import SpecialTitle from "../../../components/specialTitle/index.vue";
import CourseItem from "../../../components/courseItem/index.vue";
export default {
  components: { CourseItem, SpecialTitle },
};
</script>

<style lang="less" scoped>
.icon_more {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
  fill: currentColor;
  margin: 0 0.3rem;
}
.c_course_box {
  width: 95%;
  border-radius: 0.3rem;
  margin: 0.5rem auto 0.5rem;
  //   border: 1px solid red;
  .title {
    width: 100%;
    padding: 0.5rem 0;
    .link {
      color: #353535;
      display: flex;
      align-items: center;
    }
  }
  .list {
    padding: 0.5rem;
    box-sizing: border-box;
    background-color: #fafafa;
    .c_course_item {
      margin: 0.5rem 0;
    }
    .list_back_tag {
      height: 1.4rem;
      width: 5.6rem;
      line-height: 1.4rem;
      border-radius: 0.8rem;
      padding: 0 0.8rem;
      font-size: 0.8rem;
      font-weight: 800;
      color: #eab514;
      background-color: #fff;
      margin: 0.5rem 0;
      box-sizing: border-box;
    }
    .list_back_title {
      font-size: 1.24rem;
      font-weight: 800;
      color: white;
      margin: 0.8rem 0;
    }
  }
}
</style>
